package downpacket

import "gitee.com/yanwc/ebike-xiaoan-device/internal/field"

type QueryVoice struct {
	AudioType int        `json:"audioType"` // 语音类型(默认为0,表示没有批量定制语音)
	Aud       []VoiceIdx `json:"aud"`
	Crc       []int      `json:"crc"`
}

func NewQueryVoiceReq(sn field.SerialNumber, req QueryVoice) *Req[QueryVoice] {
	return &Req[QueryVoice]{
		CmdWord: QueryVoiceCommandWord,
		MsgNo:   sn,
		Param:   req,
	}
}